#ifndef _COMMON_DEF_SENSOR_
#define _COMMON_DEF_SENSOR_

#include "zuc/nml_intf/zucpos.h"

// 连接状态
enum CONNECT_STATE
{
    CONNECT_SUCC = 0,
    CONNECT_ERRRO,
    CONNECT_CLOSE,
    CONNECT_TIMEOUT,
    CONNECT_NO_ERROR
};

// 读取状态
enum READ_STATE
{
    READ_SUCC = 0,
    READ_WRONG_DATA,
    READ_NO_DATA,
};

// 错误码
#define ERRRO_NONE 0x0000
#define ERRRO_INIT 0x0001
#define ERRRO_NO_DATA 0x1001
#define ERRRO_WRONG_DATA 0x1002

// 传感器数据是否读取
#define MODE_OPEN 1
#define MODE_CLOSE 0

// 传感器状态
#define STATUS_CLOSING 0
#define STATUS_OPENING 1
#define STATUS_ERROR 2

// 共享内存
extern SensorShm* sensorShmStruct;

#endif